/*
* This file is a part of the open-eBackup project.
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
*
* Copyright (c) [2024] Huawei Technologies Co.,Ltd.
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
*/
#include "stub.h"
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "gmock/gmock-actions.h"
#include "JsonTransUtil.h"

using namespace std;


class JsonTransUtilTest : public testing::Test {
public:
    void SetUp();
    void TearDown();
    static void SetUpTestCase();
    static void TearDownTestCase();
    Stub stub;
    // std::shared_ptr<ShareResourceManager> m_ins {};
};


void JsonTransUtilTest::SetUp()
{
}

void JsonTransUtilTest::TearDown()
{
}

void JsonTransUtilTest::SetUpTestCase()
{
}

void JsonTransUtilTest::TearDownTestCase()
{

}

/*
* 用例名称：初始化备份统计信息
* 前置条件：设置了统计信息存放目录
* check点：初始化备份统计信息成功
*/
TEST_F(JsonTransUtilTest, StructToJson)
{
     ApplicationPlugin st;
     st.name = "aa";
     st.endPoint = "";
     st.port = 1;
     st.processId = "101";
     Json::Value jsonValue;
     StructToJson(st, jsonValue);
}